
class Tile:
	def __init__(self, blocked, block_sight = None):
		
		self.explored = False
		self.blood = False	#no bloodsplats
		self.blocked = blocked
		
		
		if block_sight is None: block_sight = blocked
		self.block_sight = block_sight
		
		self.owners = []	#set owner if the place is reserved for housing
		self.model = None
		self.color = None
		self.road =  None
		
		self.objects = []	#object list for fast search
		
		#special flag to check if tile is blocked by objects or not
		self.obstacle = False
		
	def is_owned(self):
		if len(self.owners):
			return True
			#~ for owner in range self.owners
				#~ if owner.is_alive():
					#~ return True
		return False
	
	def owned_by(self,entity):
		for ent in self.owners:
			if ent is entity:
				return True
					
		return False
